<%@include file="/html/init.jsp" %>

<%
ResultRow row = (ResultRow)request.getAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW);
models models = (models)row.getObject();

String name = models.class.getName();
long _id = models.get_id();

String redirect = PortalUtil.getCurrentURL(renderRequest);
%>

<liferay-ui:icon-menu>
	<portlet:actionURL name="addModelURL" var="editURL">
		<portlet:param name="jspPage" value="/html/softuirulesengineportlet/modelAdd.jsp" />
		<portlet:param name="_id" value="<%= String.valueOf(_id) %>"/>
		<portlet:param name="backURL" value="<%= redirect %>"/>
	</portlet:actionURL>
	
	<liferay-ui:icon message='<%=LanguageUtil.get(pageContext, "edit") %>' image="edit" url="<%=editURL.toString() %>" />

	<portlet:actionURL name="deleteModel" var="deleteModelURL">
		<portlet:param name="_id" value="<%= String.valueOf(_id) %>" />
		<portlet:param name="redirect" value="<%= redirect %>"/>
	</portlet:actionURL>
	
	<liferay-ui:icon message='<%=LanguageUtil.get(pageContext, "delete") %>' image="delete" url="<%=deleteModelURL.toString() %>" />

</liferay-ui:icon-menu>